home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / include / X11 / extensions / XvMClib.h < prev    next >
C/C++ Source or Header  |  2006-04-12  |  4KB  |  212 lines

  1. /* $XdotOrg: xc/include/extensions/XvMClib.h,v 1.2 2004/04/23 18:43:06 eich Exp $ */
  2. /* $XFree86: xc/include/extensions/XvMClib.h,v 1.6 2001/11/14 21:54:37 mvojkovi Exp $ */
  3.  
  4. #ifndef _XVMCLIB_H_
  5. #define _XVMCLIB_H_
  6.  
  7. #include <X11/Xfuncproto.h>
  8. #include <X11/extensions/Xvlib.h>
  9. #include <X11/extensions/XvMC.h>
  10.  
  11. _XFUNCPROTOBEGIN
  12.  
  13. Bool XvMCQueryExtension (Display *display, int *eventBase, int *errBase);
  14. Status XvMCQueryVersion (Display *display, int *major_versionp,
  15.              int *minor_versionp);
  16.  
  17. XvMCSurfaceInfo * XvMCListSurfaceTypes(Display *dpy, XvPortID port, int *num);
  18.  
  19. Status XvMCCreateContext (
  20.    Display *display,
  21.    XvPortID port,
  22.    int surface_type_id,
  23.    int width,
  24.    int height,
  25.    int flags,
  26.    XvMCContext * context
  27. );
  28.  
  29. Status XvMCDestroyContext (Display *display, XvMCContext * context);
  30.  
  31. Status 
  32. XvMCCreateSurface(
  33.   Display *display,
  34.   XvMCContext * context,
  35.   XvMCSurface * surface
  36. );
  37.  
  38. Status XvMCDestroySurface(Display *display, XvMCSurface *surface);
  39.  
  40. XvImageFormatValues * XvMCListSubpictureTypes (
  41.   Display * display,
  42.   XvPortID port,
  43.   int surface_type_id,
  44.   int *count_return
  45. );
  46.  
  47. Status
  48. XvMCPutSurface(
  49.   Display *display,
  50.   XvMCSurface *surface,
  51.   Drawable draw,
  52.   short srcx, 
  53.   short srcy, 
  54.   unsigned short srcw, 
  55.   unsigned short srch,
  56.   short destx,
  57.   short desty,
  58.   unsigned short destw,
  59.   unsigned short desth,
  60.   int flags
  61. );
  62.  
  63. Status XvMCHideSurface(Display *display, XvMCSurface *surface);
  64.  
  65. Status
  66. XvMCCreateSubpicture (
  67.    Display *display, 
  68.    XvMCContext *context,
  69.    XvMCSubpicture *subpicture, 
  70.    unsigned short width,
  71.    unsigned short height,
  72.    int xvimage_id
  73. );
  74.  
  75.  
  76. Status
  77. XvMCClearSubpicture (
  78.   Display *display,
  79.   XvMCSubpicture *subpicture,
  80.   short x,
  81.   short y,
  82.   unsigned short width,
  83.   unsigned short height,
  84.   unsigned int color
  85. );
  86.  
  87. Status
  88. XvMCCompositeSubpicture (
  89.    Display *display,
  90.    XvMCSubpicture *subpicture,
  91.    XvImage *image,
  92.    short srcx,
  93.    short srcy,
  94.    unsigned short width,
  95.    unsigned short height,
  96.    short dstx,
  97.    short dsty
  98. );
  99.  
  100. Status
  101. XvMCDestroySubpicture (Display *display, XvMCSubpicture *subpicture);
  102.  
  103. Status
  104. XvMCSetSubpicturePalette (
  105.   Display *display, 
  106.   XvMCSubpicture *subpicture, 
  107.   unsigned char *palette
  108. );
  109.  
  110. Status
  111. XvMCBlendSubpicture (
  112.    Display *display,
  113.    XvMCSurface *target_surface,
  114.    XvMCSubpicture *subpicture,
  115.    short subx,
  116.    short suby,
  117.    unsigned short subw,
  118.    unsigned short subh,
  119.    short surfx,
  120.    short surfy,
  121.    unsigned short surfw,
  122.    unsigned short surfh
  123. );
  124.  
  125. Status
  126. XvMCBlendSubpicture2 (
  127.    Display *display,
  128.    XvMCSurface *source_surface,
  129.    XvMCSurface *target_surface,
  130.    XvMCSubpicture *subpicture,
  131.    short subx,
  132.    short suby,
  133.    unsigned short subw,
  134.    unsigned short subh,
  135.    short surfx,
  136.    short surfy,
  137.    unsigned short surfw,
  138.    unsigned short surfh
  139. );
  140.  
  141. Status XvMCSyncSurface (Display *display, XvMCSurface *surface);
  142. Status XvMCFlushSurface (Display *display, XvMCSurface *surface);
  143. Status XvMCGetSurfaceStatus (Display *display, XvMCSurface *surface, int *stat);
  144.  
  145. Status XvMCRenderSurface ( 
  146.    Display *display,
  147.    XvMCContext *context,
  148.    unsigned int picture_structure,
  149.    XvMCSurface *target_surface,
  150.    XvMCSurface *past_surface,
  151.    XvMCSurface *future_surface,
  152.    unsigned int flags,
  153.    unsigned int num_macroblocks,
  154.    unsigned int first_macroblock,
  155.    XvMCMacroBlockArray *macroblock_array,
  156.    XvMCBlockArray *blocks
  157. );
  158.  
  159.  
  160. Status XvMCSyncSubpicture (Display *display, XvMCSubpicture *subpicture);
  161. Status XvMCFlushSubpicture (Display *display, XvMCSubpicture *subpicture);
  162. Status
  163. XvMCGetSubpictureStatus (Display *display, XvMCSubpicture *subpic, int *stat);
  164.  
  165. Status XvMCCreateBlocks (
  166.    Display *display, 
  167.    XvMCContext *context,
  168.    unsigned int num_blocks,
  169.    XvMCBlockArray *block
  170. );
  171.  
  172. Status XvMCDestroyBlocks (Display *display,XvMCBlockArray *block);
  173.  
  174. Status XvMCCreateMacroBlocks (
  175.    Display *display,
  176.    XvMCContext *context,
  177.    unsigned int num_blocks,
  178.    XvMCMacroBlockArray *blocks
  179. );
  180.  
  181. Status XvMCDestroyMacroBlocks (
  182.    Display *display,
  183.    XvMCMacroBlockArray *block
  184. );
  185.  
  186. XvAttribute *
  187. XvMCQueryAttributes (
  188.     Display *display,
  189.     XvMCContext *context,
  190.     int *number
  191. );
  192.  
  193. Status
  194. XvMCSetAttribute (
  195.     Display *display,
  196.     XvMCContext *context, 
  197.     Atom attribute, 
  198.     int value
  199. );
  200.  
  201. Status
  202. XvMCGetAttribute (
  203.     Display *display,
  204.     XvMCContext *context, 
  205.     Atom attribute, 
  206.     int *value
  207. );
  208.  
  209. _XFUNCPROTOEND
  210.  
  211. #endif
  212.